package com.lyf.shop.services;

import com.lyf.shop.entity.Cart;

import java.sql.SQLException;
import java.util.List;

public interface CartService {
    /**
     * 操作购物车
     * 1新增
     * 2修改
     *  uid
     *  pid
     */
    void operation(int uid,int pid);
    //查找多个
    List<Cart> findCart(int uid) ;

    //删除单条
    int delCart(int uid,int pid) ;

    //修改
    int updateCart(Cart cart);

    //查找单个
    Cart findCart(int uid, int pid) ;
}
